import request from '@/utils/request'

export function getList(trueName) {
  return request({
    url: `http://localhost:8080/doctor/list`,
    method: 'get',
    params:{
        trueName
    }
  })
}

// 删除数据
export function deletedata(id){
    return request({
        url:"http://localhost:8080/doctor/delete",
        method:"post",
        params:{
            id
        }
    })
}


// 添加医生数据
export function insertdatadoctor(data){
  return request({
    url:"http://localhost:8080/doctor/insert",
    method:"post",
    params: data
  })
}

// 修改医生的数据
export function updatedata(data){
  return request({
    url:"http://localhost:8080/doctor/update",  
    method:"put",
    params:data
   
  })
}